-- GENERATED SPELL FOR [Fozruk] --


function spell0_2611(pUnit, Event) --@Ground Tremor,Self--
pUnit:FullCastSpellOnTarget(6524,pUnit)
pUnit:RegisterEvent('Sorts_2611', 2000, 1)
end

function spell1_2611(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_2611', 572, 1)
end

function Sorts_2611(pUnit, Event)
local choix_sorts_2611 = math.random(0, 1)
if choix_sorts_2611 == 0 then
pUnit:RegisterEvent('spell0_2611', 1, 1)
end
if choix_sorts_2611 == 1 then
pUnit:RegisterEvent('spell1_2611', 1, 1)
end
end

function mob2611_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2611', math.random(1500, 3000), 1)
end

function mob2611_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2611_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2611_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2611, 1, 'mob2611_Action')
RegisterUnitEvent(2611, 2, 'mob2611_Leave')
RegisterUnitEvent(2611, 3, 'mob2611_Kill')
RegisterUnitEvent(2611, 4, 'mob2611_Die')
